package com.cbs.android.component.diskcache.sample;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.cbs.android.component.diskcache.DiskCache;
import com.cbs.android.component.log.L;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = MainActivity.class.getName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void defaultCache(View view) {
        L.e(TAG, DiskCache.getFormattedCacheSize(this));
    }

    public void customCache(View view) {
        List<String> paths = new ArrayList<>();
        paths.add("/sdcard/Pictures/");
        L.e(TAG, DiskCache.getFormattedCacheSize(paths));
    }
}
